package org.dromara.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.dromara.article.domain.KeywordsDict;
import org.dromara.article.domain.vo.KeywordsDictQueryVo;

import java.util.List;

public interface KeywordsDictMapper extends BaseMapper<KeywordsDict> {
    int updateBatch(@Param("list") List<KeywordsDict> list);

    int updateBatchSelective(@Param("list") List<KeywordsDict> list);

    int batchInsert(@Param("list") List<KeywordsDict> list);

    /**
     * 根据类型和状态查询关键词列表
     *
     * @param type
     * @param status
     * @return
     */
    List<String> selectKeywords(@Param("type") int type, @Param("status") int status);

    /**
     * 查询关键词列表
     *
     * @param queryVo
     * @param page
     * @return
     */
    IPage<KeywordsDict> selectKeywordsList(@Param("queryVo") KeywordsDictQueryVo queryVo, @Param("page") IPage<KeywordsDict> page);
}
